package com.simple.cloud.pojo;

import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;

import java.io.Serializable;

/**
 * <h3>springcloud</h3>
 * <p></p>
 *
 * @author : 你的名字
 * @date : 2020-05-19 13:42
 **/
@Data
@NoArgsConstructor
/**
 * 链式写法
 *    dept.setDeptNo().setDname();
 */
@Accessors(chain = true)
public class Dept implements Serializable {
    private Long deptno;

    private String dname;

    private String dbSource;

    public Dept(String dname) {
        this.dname = dname;
    }

}
